package com.itheima.bean;

import com.itheima.bean.dao.UserDao;
import com.itheima.bean.pojo.User;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import javax.sql.DataSource;

public class App {
    public static void main(String[] args) {

        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");


        UserDao userDao = context.getBean(UserDao.class);
        System.out.println(userDao);

    }
}
